package main

import (
	"flag"
	"fmt"
	"net"
)

//var server string     //服务端
// var sendMsg string    //发送的信息
// var receiveMsg string //回复的信息
func main() {
	server := flag.String("S", "127.0.0.1:8081", "输入服务端地址，ip:port")
	flag.Parse()
	fmt.Printf("link server %s\n", *server)
	tcpAddr, err := net.ResolveTCPAddr("tcp4", *server)
	checkErr(err)
}

func checkErr(err error) {
	if err != nil {
		fmt.Fprintf(os.Stderr, "Fatal error:%s", err.Error())
		os.Exit(1)
	}
}
